import { useUv } from "@/hooks"

const uv = useUv()
export default function commonApi(){
  return {
 // 获取code
  code2Session: (params) =>{
      return uv.http.get("/weChat/code2Session", {params,
        custom: {loading: true},} )
    },
    login: (params) =>{
      return uv.http.get("/user/login", {params,
        custom: {loading: true},} )
    },
  }
} 
